package com.sealer.pattern.behavioral.chainofresponsibility.impl;

import com.sealer.pattern.behavioral.chainofresponsibility.Constant;
import com.sealer.pattern.behavioral.chainofresponsibility.Handler;

/**
 * Created by sealer on 17/04/07.
 */
public class DebugHandler extends Handler {
    @Override
    public void handleRequest(int level) {
        if (level <= Constant.DEBUG) {
            System.out.println("print log level : debug-2");
        }
        this.successor.handleRequest(level);
    }
}
